package cn.flant.db.hdle;

import java.util.ArrayList;
import java.util.List;

public class ResultData {
	private String[] title;
	private List<Object[]> dataList;

	public ResultData() {
		dataList = new ArrayList<Object[]>();
	}

	public ResultData(int size) {
		dataList = new ArrayList<Object[]>(size);
	}

	public String[] getTitle() {
		return title;
	}

	protected void setTitle(String[] title) {
		this.title = title;
	}

	public List<Object[]> getDataList() {
		return dataList;
	}

	protected void addData(Object[] data) {
		this.dataList.add(data);
	}

	public int getDataCount() {
		return dataList == null ? -1 : dataList.size();
	}

	public int getTitleCount() {
		return title == null ? -1 : title.length;
	}

}
